package com.youkeyi.ddy.cloud.common.api.basic.crm.doctor;

import com.youkeyi.ddy.cloud.common.api.basic.crm.doctor.dto.CrmDoctorListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.crm.doctor.param.CrmDoctorCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.crm.doctor.param.CrmDoctorDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.crm.doctor.param.CrmDoctorQueryCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.crm.doctor.param.CrmDoctorUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * CrmDoctorCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 2024/3/1 10:54 AM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/crm/doctor/fallback")
public class CrmDoctorCloudServiceFallback implements CrmDoctorCloudService {

    @Override
    public CrmDoctorListCloudDto query(CrmDoctorQueryCloudParam param) {
        return new CrmDoctorListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(CrmDoctorCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(CrmDoctorUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(CrmDoctorDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
